﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Class_DAO;
using Class_DTO;
using System.Data;

namespace Class_BUS
{
    public class KhachHangBus
    {
        public static DataTable LoadDS_KhachHang()
        {
            KhachHangDAO KHdao = new KhachHangDAO();
            DataTable dt = new DataTable();
            dt = KHdao.getDanhSachKH();
            return dt;
        }


        public static DataTable getDanhSachKH_theoten(string pTEN)
        {
            KhachHangDAO KHdao = new KhachHangDAO();
            DataTable dt = new DataTable();
            dt = KHdao.getDanhSachKH_theoten(pTEN);
            return dt;
        }


        public static bool  ThemKhachHang_BUS(KhachHangDTO dto)
        {
            KhachHangDAO KHdao = new KhachHangDAO();
           
                KHdao.ThemKhachHang_DAO(dto);
                return true;           
                       
        }
        
    }
    
}
